# -*- coding: utf-8 -*-

from google.appengine.dist import use_library
use_library('django', '1.2')

import os, sys
os.environ['DJANGO_SETTINGS_MODULE'] = "settings"
sys.path.insert(1, os.path.join(os.path.dirname(__file__), 'lib'))

from google.appengine.ext.webapp import util
from django.conf import settings


if __name__ == "__main__":
    if settings.FLASK_SETTINGS.PROTOTYPE:
        from application.app_prototype import app as app_prototype
        util.run_wsgi_app(app_prototype)
    else:    
        from application.app import app
        util.run_wsgi_app(app)
    
    
    